<?php
require_once($application_folder."/controllers/navigator.php");
class NewsTicker extends navigator 
{

    function __construct()
    {
        parent::__construct(); 
    } 
    
    function index(){
        $this->getNewsTicker();
    }
    
    function getNewsTicker(){
        
        $this->load->model('datam');
        
        $res['columns'] = $this->datam->getColumns();        
        $res['tickerNews'] = $this->datam->getArticlesColsSubcolsWithDefaultMediaByTags(1, '0,2');
        $res['title'] = 'Ticker 24';                     
        //$res['gImage'] = $this->initializeGetImage(); 
         
        $this->core_site('newsTicker', $res, 'newsTicker');
        
    }
    
    
    

}